package main

import (
	"fmt"
	"reflect"
)

func reflectType(x interface{}) {
	v := reflect.ValueOf(x)
	fmt.Printf("type: %T %v\n", v.Type(), v.Type())

	typeVal := reflect.TypeOf(x)
	fmt.Printf("value: %T %v\n", typeVal, typeVal)
}
func main() {

	var a float32 = 12.66
	reflectType(a) // float32

	var b int32 = 999
	reflectType(b) // int32

}
